import React from 'react';
import './App.css';
// Provider组件的出现是作为中间件降低各组件与Store之间的耦合。
import { Provider } from 'react-redux'
import { store } from './store'
import Posts from './components/Posts'
import PostForm from './components/postForm'

function App() {
  return (
    // 全局使用redux
    <Provider store={store}>
      <div className="App">
        <PostForm />
        <Posts />

      </div>
    </Provider>
  );
}

export default App;
